-- GENERATED SPELL FOR [Dreaming Whelp] --


function spell0_741(pUnit, Event) --@Acid Spit,n/a--
pUnit:FullCastSpellOnTarget(20821,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_741', 3000, 1)
end

function spell1_741(pUnit, Event) --@Sleep,n/a--
pUnit:FullCastSpellOnTarget(12098,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_741', 21000, 1)
end

function Sorts_741(pUnit, Event)
local choix_sorts_741 = math.random(0, 1)
if choix_sorts_741 == 0 then
pUnit:RegisterEvent('spell0_741', 1, 1)
end
if choix_sorts_741 == 1 then
pUnit:RegisterEvent('spell1_741', 1, 1)
end
end

function mob741_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_741', math.random(1500, 3000), 1)
end

function mob741_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob741_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob741_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(741, 1, 'mob741_Action')
RegisterUnitEvent(741, 2, 'mob741_Leave')
RegisterUnitEvent(741, 3, 'mob741_Kill')
RegisterUnitEvent(741, 4, 'mob741_Die')
